package com.itestor.iptv.modules.common.domain;

import java.io.Serializable;

/**
 * RoleGroupRobot复合主键类
 * @author Mr.li
 *
 */
public class RobotGroupManagePK implements Serializable{
	/**
	 * serialVersionUID
	 */
	private static final long serialVersionUID = -4197962073662772075L;
	/**
	 * 设备.主键
	 */
	private Integer idRobot;
	/**
	 * 分组.主键
	 */
	private Integer idGroup;
	
	
	public RobotGroupManagePK() {
	    
	}
	
	
	public Integer getIdRobot() {
		return idRobot;
	}
	public Integer getIdGroup() {
		return idGroup;
	}
	public void setIdRobot(Integer idRobot) {
		this.idRobot = idRobot;
	}
	public void setIdGroup(Integer idGroup) {
		this.idGroup = idGroup;
	}
	
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((idRobot == null) ? 0 : idRobot.hashCode());
		result = prime * result
				+ ((idGroup == null) ? 0 : idGroup.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		final RobotGroupManagePK other = (RobotGroupManagePK) obj;
		
		if (idRobot == null) {
			if (other.idRobot != null)
				return false;
		} else if (!idRobot.equals(other.idRobot))
			return false;
		if (idGroup == null) {
			if (other.idGroup != null)
				return false;
		} else if (!idGroup.equals(other.idGroup))
			return false;
		
		return true;
	}
	
}
